import huakun from '@/assets/category/home/partners/huakun.png';
import kunlun from '@/assets/category/home/partners/kunlun.png';
import shenzhou from '@/assets/category/home/partners/shenzhou.png';
import changjiang from '@/assets/category/home/partners/changjiang.png';
import baode from '@/assets/category/home/partners/baode.png';
import baixin from '@/assets/category/home/partners/baixin.png';
import tongfang from '@/assets/category/home/partners/tongfang.png';

import microComponent from '@/assets/category/home/intro/micro-component.svg';
import standard from '@/assets/category/home/intro/standard.svg';
import faultManagement from '@/assets/category/home/intro/fault-management.svg';
import trustCenter from '@/assets/category/home/intro/trust-center.svg';
import bmcStudio from '@/assets/category/home/intro/bmc-studio.svg';

import learnResource from '@/assets/category/home/link/learn-resource.svg';
import communityForum from '@/assets/category/home/link/community-forum.svg';
import onlineMeeting from '@/assets/category/home/link/online-meeting.png';
import softwareCenter from '@/assets/category/home/link/software-center.svg';
import { useLocale } from '@/composables/useLocale.ts';

const { t } = useLocale();

export const PARTNERS_LIST = [huakun, kunlun, shenzhou, changjiang, baode, baixin, tongfang];

export const FOOTER_LINK = [
  {
    title: t('footer.learn'),
    children: [
      {
        title: t('footer.documentCenter'),
        link: '/docs',
      },
      {
        title: t('footer.videoTeaching'),
        link: '',
      },
    ],
  },
  {
    title: t('footer.community'),
    children: [
      {
        title: t('footer.sigCenter'),
        link: '/sig',
      },
      {
        title: t('footer.forums'),
        // TODO: 待替换为生产链接
        link: 'https://openubmc-discourse.test.osinfra.cn/',
      },
    ],
  },
  {
    title: t('footer.support'),
    children: [
      {
        title: t('footer.FAQs'),
        link: 'https://gitcode.com/org/openUBMC/issues?state=all&scope=all&page=1',
      },
      {
        title: t('footer.problemFeedback'),
        link: '',
      },
    ],
  },
  {
    title: t('footer.friendlyLink'),
    children: [
      {
        title: 'GitCode',
        link: 'https://gitcode.com/',
      },
    ],
  },
];

export const INTRODUCTION_LIST = [
  {
    title: '微组件架构',
    intros: ['成熟组件可配置', '定制组件可插件', '新组件开发可视'],
    icon: microComponent,
  },
  {
    title: '社区共建标准',
    intros: ['兼容性社区D-bus标准', '构建部件接口标准', '共建硬件适配市场'],
    icon: standard,
  },
  {
    title: '智能故障管理',
    intros: ['RAS故障分析', '光模块故障分析', 'AI故障预测'],
    icon: faultManagement,
  },
  {
    title: '计算可信中心',
    intros: ['硬件生命周期可信', '固件可信接入', '最小业务子系统'],
    icon: trustCenter,
  },
  {
    title: 'BMC Studio开发工具',
    intros: ['一键环境部署与代码构建', '可视化软硬件模型配置', '功能仿真与测试'],
    icon: bmcStudio,
  },
];

export const LINK_LIST = [
  {
    title: '学习资源',
    desc: '汇聚详细的文档和视频教学',
    icon: learnResource,
    url: '/docs',
  },
  {
    title: '社区论坛',
    desc: '和其他开发者一起聊聊吧',
    icon: communityForum,
    url: 'https://openubmc-discourse.test.osinfra.cn/',
  },
  {
    title: '线上会议',
    desc: '提供远程的技术支持',
    icon: onlineMeeting,
    url: '/sig',
  },
  {
    title: '软件中心',
    desc: '全面的软件工具下载中心',
    icon: softwareCenter,
    url: 'https://repo.openubmc.cn',
  },
];
